﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LED_Editor.Config {
	public class SerialPortSettings {
		private SerialPortSettings() { }

		public string Port { get; set; }
		public int BaudRate { get; set; }


		private static SerialPortSettings _instance;
		public static SerialPortSettings Instance {
			get {
				if (_instance == null)
					_instance = new SerialPortSettings();
				return _instance;
			}
		}

		private static int[] _baudRates;
		public static int[] BaudRates {
			get {
				if (_baudRates == null) 
					_baudRates = new int[] { 110, 300, 1200, 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600 };				
				return _baudRates;
			}
		}

	}

}

